package com.dudy.common.base;

/**
 * @program: nacos_auth
 * @author: dudy
 * @create: 2020-11-03 11:06
 * @description:
 **/
public enum ResultCode {

    SUCCESS(0000, "操作成功"),
    FAIL(1000, "请求失败"),
    REQUEST_PARAM_NULL(1001, "参数为空"),
    VERIFY_CODE_ERROR(2000, "验证码错误"),
    NOT_LOGIN(3000, "尚未登陆，请先登陆"),
    LOGIN_LOCK(3001, "账号被锁定，请联系管理员"),
    PWD_EXPIRE(3002, "密码过期，请重置密码"),
    ACCOUNT_EXPIRE(3003, "账号过期，请联系管理员"),
    ACCOUNT_DISABLE(3004, "账号被禁用，请联系管理员"),
    LOGIN_INFO_ERROR(3005, "用户名或密码输入错误，请重新输入"),
    LOGIN_INFO_NOT_EXIST(3006, "账号不存在"),
    NO_AUTHORITY(3007,"对不起，您没有该权限"),
    ;

    private int code;
    private String massage;

    ResultCode(int code, String massage) {
        this.code = code;
        this.massage = massage;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }
}
